<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<!--左侧边栏-->
	<div class="panel-group col-sm-2">
		<ul class="nav nav-pills nav-stacked emp_sidebar">
			<li class="active" role="presentation">
				<a href="#" data-toggle="collapse" data-target="#collapse_emp">
					<span class="glyphicon glyphicon-user" aria-hidden="true">&nbsp;员工管理</span>
				</a>
				<ul class="nav nav-pills nav-stacked" id="collapse_emp">
					<li role="presentation"><a href="#" class="emp_info">员工信息</a></li>
					<li role="presentation"><a href="#" role="button" class="emp_add_btn" 
					data-toggle="modal">员工新增</a></li>
					<li role="presentation"><a href="#" class="emp_clearall_btn">员工清零</a></li>
				</ul>
			</li>
		</ul>
		<ul class="nav nav-pills nav-stacked dept_sidebar">
			<li class="active" role="presentation">
				<a href="#" data-toggle="collapse" data-target="#collapse_dept">
					<span class="glyphicon glyphicon-cloud" aria-hidden="true">&nbsp;部门管理</span>
				</a>
				<ul class="nav nav-pills nav-stacked" id="collapse_dept">
					<li role="presentation"><a href="#" class="dept_info">部门信息</a></li>
					<li role="presentation"><a href="#" role="button" class="dept_add_btn" 
					data-toggle="modal">部门新增</a></li>
					<li role="presentation"><a href="#" class="dept_clearall_btn">部门清零</a></li>	
				</ul>
			</li>
		</ul>
	</div>
	<!-- 添加脚本，实现跳转功能 -->
	<script type="text/javascript">
	   //跳转到部门页面
	   $(".dept_info").click(function(){
		   $(this).attr("href","/SSM_HRMS/dept/getDepList");
	   });
	   //跳转到员工页面
	   $(".emp_info").click(function(){
		   $(this).attr("href","/SSM_HRMS/emp/findEmpPaged2?page=1"); 
	   });
	    //员工清零这个功能暂未实现
	    $(".emp_clearall_btn").click(function () {
	        alert("对不起，您暂无权限进行操作！请先获取权限");
	    });
	    //部门清零这个功能暂未实现
	    $(".dept_clearall_btn").click(function () {
	        alert("对不起，您暂无权限进行操作！请先获取权限");
	    });	   
	</script>
</body>
</html>